<template>
    <div class="">
        <h2>子组件2</h2>
        <p>子组件2接受的数据:{{ getCount }}</p>
    </div>
</template>

<script setup>
import { inject } from 'vue'
let getCount = inject('count');
</script>

<style lang="less" scoped>

</style>
